<template>
  <div>
    <!-- <big-container :options="{ width: 1920, height: 1080 }"> -->
    <v-scale-screen
      width="1920"
      height="1080"
      :boxStyle="{
        backgroundColor: '#05163d',
      }"
    >
      <div class="back">
        <y-button type="primary" @click="$router.back()">返回</y-button>
      </div>
      <div class="wrapper">
        <div class="column">
          <assetAnalysis @fullScreen="handleFullScreen('assetAnalysis')"></assetAnalysis>
          <houseCount @fullScreen="handleFullScreen('houseCount')"></houseCount>
          <rentCash @fullScreen="handleFullScreen('rentCash')"></rentCash>
        </div>
        <div class="column">
          <mapCharts></mapCharts>
          <dataTabll></dataTabll>
        </div>
        <div class="column">
          <proportionTypes @fullScreen="handleFullScreen('proportionTypes')"></proportionTypes>
          <warehousing @fullScreen="handleFullScreen('warehousing')"></warehousing>
          <mismanage @fullScreen="handleFullScreen('mismanage')"></mismanage>
        </div>
      </div>
    </v-scale-screen>
    <!-- </big-container> -->
    <a-modal class="full-modal" :visible="visibleFullScreen" @cancel="handleCancel" width="60%" :footer="null">
      <component :is="fullComponent" class="full-screen"></component>
    </a-modal>
  </div>
</template>

<script>
import bigContainer from './components/bigContainer.vue'
import assetAnalysis from './components/assetAnalysis.vue'
import houseCount from './components/houseCount.vue'
import rentCash from './components/rentCash.vue'
import mapCharts from './components/map.vue'
import dataTabll from './components/table.vue'
import warehousing from './components/warehousing.vue'
import mismanage from './components/mismanage.vue'
import proportionTypes from './components/proportionTypes.vue'

export default {
  components: {
    bigContainer,
    assetAnalysis,
    houseCount,
    rentCash,
    mapCharts,
    dataTabll,
    warehousing,
    mismanage,
    proportionTypes
  },
  data () {
    return {
      visibleFullScreen: false,
      fullComponent: ''
    }
  },
  methods: {
    handleFullScreen (name) {
      this.visibleFullScreen = true
      this.fullComponent = name
    },
    handleCancel () {
      this.visibleFullScreen = false
    }
  }
}
</script>
<style lang="less" scoped>
.back {
  position: absolute;
  z-index: 999;
  top: 10px;
  left: 30px;
  /deep/ .y-button--primary {
    background-color: transparent;
  }
}
.full-modal{
  /deep/ .ant-modal-body{
    padding: 46px;
    background-color: #05163d;
  }
  /deep/ .ant-modal-close-icon{
    color: #fff;
  }
  /deep/ .full-screen{
    color: #fff;
    .anticon-fullscreen{
      display: none;
    }

  }
}
.wrapper {
  width: 1920px;
  height: 1080px;
  background-image: url(../../assets/images/charts-bg.png);
  background-size: 100% 100%;
  background-position: center center;
  background-repeat: no-repeat;
  display: flex;
  color: #fff;
  padding: 30px;
  padding-top: 57px;
  .column {
    flex: 1;
    position: relative;
    &:nth-child(2) {
      flex: 2;
      margin: 30px;
    }
  }
}
/deep/ .border-line {
  box-sizing: border-box;
  width: 100%;
  min-height: 100px;
  position: relative;
  border: 1px solid red;
  border-image: url(../../assets/images/charts-border.png) 1 1;
  border-width: 1px;
  padding: 20px;
  margin-bottom: 20px;
}
</style>
